The following instruction is for setting up Random Query Generator
on an Ubuntu system (My system is 14.04.3 LTS).  It is based on the information
available on https://github.com/RQG/RQG-Documentation/wiki/RandomQueryGeneratorQuickStart

1. DBD::mysql perl module

  install libdbd-mysql-perl
  apt-get update
  apt-get install libdbd-mysql-perl

2. Windows tools, Skipped

3. CPAN
  
  perl -MCPAN -e shell
  cpan> install Bundle::CPAN

  Additional information is available at http://www.twiki.org/cgi-bin/view/TWiki/HowToInstallCpanModules
  
4. Perl modules
  
sudo perl -MCPAN -e 'install Test::More'
sudo perl -MCPAN -e 'install Digest::MD5'
sudo perl -MCPAN -e 'install Log::Log4perl'
sudo perl -MCPAN -e 'install XML::Writer'
sudo perl -MCPAN -e 'install DBIx::MyParsePP'
sudo perl -MCPAN -e 'install Statistics::Descriptive'
sudo perl -MCPAN -e 'install JSON'
sudo perl -MCPAN -e 'install Test::Unit'  Failed to install

5. Downloading Random Query Generator

   RQG can be downloaded from this at https://launchpad.net/randgen/+download
   
6. Running your first test
  
   Before running the following sample test, you need to get the conf directory from
   the MariaDB distribution and save it in the RQG directory.  It is in the
   mysql-5.6/xtrabackup/test/kewpie/randgen directory.
  
   perl gentest.pl \
   --dsn=dbi:mysql:host=127.0.0.1:port=3306:user=root:database=test \
   --gendata=conf/examples/example.zz \
   --grammar=conf/examples/example.yy
   


RocksDB supports binary (binary, latin1_bin, utf8_bin) collation only.
One option to avoid collation error is to add the follow option when starting mysqld.

--rocksdb_strict_collation_exceptions=.*

Ex:

./mysqld --rocksdb_strict_collation_exceptions=.* --defaults-file=$ROCKSDBDIR/myrocks.cnf

this should make MyRocks to allow any collations

Another direction is to modify the grammar in RQG so that only latin1_bin and utf8_bin collations are used


Elena's mariadb-patches branch

Directory link: https://launchpad.net/~elenst/randgen/mariadb-patches

to download:

bzr branch lp:~elenst/randgen/mariadb-patches
     